<?php
/**
 * Created by PhpStorm.
 * User: sunshubo
 * Date: 2017/12/12
 * Time: 9:50
 */

class ModifyActiveInfo_control extends MY_Controller
{
    function index()
    {
        $body = $this->input->raw_input_stream;
        $body = str_replace('\n', '<br>', $body);
        $body = json_decode($body);
        $this->load->model('active/modifyactiveinfo_model', 'modify');
        $res = $this->modify->modify_info($body);
        if ($res) {
            $result = array('msg' => 'ok', 'result' => SUCCESS);
        } else {
            $result = array('msg' => 'err', 'result' => ERROR);
        }
        echo json_encode($result);
    }
}